import {
  createRouter,
  createWebHashHistory,
  type RouteRecordRaw
} from 'vue-router';
import routesRow from './routes'

const routes:RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Layout',
    component: () => import('@/layout/index.vue'),
    meta: { title: 'Layout' },
    children:routesRow
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router